package com.yunzhi.medical.mapper;

import com.yunzhi.medical.pojo.CheckItem;
import com.yunzhi.medical.utils.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author :Mikey
 * @description :
 * @create :2022-06-25 11:03:00
 */
@Mapper
public interface CheckItemMapper {
    //    增加检查项
    int insertCheckItem(CheckItem checkItem);

    //查询所有检查项
    List<CheckItem> findItemInfo();

    //关键词查询
    List<CheckItem> findLikeItemInfo(@Param("queryString") String queryString);

    //.....
    CheckItem findCkeckItem(@Param("id") Integer id);

    //.......
    int updateCheckItem(CheckItem checkItem);

    int deleteCheckItem(@Param("id") Integer id);
}
